package aimis;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class TestIgnore {
    private Long id;
    @JsonIgnore
    private String name;
    public static void main(String args[]) throws JsonProcessingException {
        var obj=new TestIgnore(10L,"abcd");
        var objMapper=new ObjectMapper();
        System.out.println(objMapper.writeValueAsString(obj));
    }

}
